# -*-coding: Utf-8 -*-
# @File : case
# author: liaohf
# Time：2024/9/22
from datetime import datetime
from pydantic import BaseModel
from typing import Optional, List


class AddCaseStats(BaseModel):
    id: str
    case_id: str
    case_name: Optional[str]
    start_time:  Optional[datetime]
    end_time:  Optional[datetime]
    perform_time:  Optional[int]
    case_status:  Optional[int]
    case_exception:  Optional[str]
    project_run_id:  Optional[str]
    project_version:  Optional[str]
    case_class:  Optional[str]
    case_method:  Optional[str]
    case_description:  Optional[str]
    perform_ip:  Optional[list]
    perform_user:  Optional[str]
    environment:  Optional[str]
    file_list:  Optional[list]
    comment_id:  Optional[str]